//**********瀚码市场应用推送审核***********/;
import request from '@/utils/request.js';
const BASE_URL=process.env.VUE_APP_ROOT_URL === './'?'':'/dev-centre'
/**
 * 审核通过
 * @doc http://ms-dev.hancode.com/dev-centre/v2/api-docs
 * data 参数 // 类型 array
 * []integer
 * @returns
 * code:'', //执行结果状态码 	类型:integer 必填
 * data:'', //返回正确结果时携带的数据 	类型:string 非必填
 * message:'', //执行结果信息 	类型:string 必填
 * messageData:'', //错误信息填充字段 	类型:array 非必填
 * **********************
 * import { putHmappreleaseauditApprove } from '@/apis/dev-centre/HmAppReleaseAuditController.js'
 */
export function putHmappreleaseauditApprove(data=[], config={}){
  return request({
    method: 'put',
    data,
    url: BASE_URL+`/api/hm-app-release-audit/approve`,
    ...config,
  }) 
}

/**
 * 应用审核记录
 * @doc http://ms-dev.hancode.com/dev-centre/v2/api-docs
 * params 参数 
 * id:'', //应用推送接记录id 非必填
 * @returns
 * code:'', // 	类型:integer 非必填
 * data:[object]
  * [{
  * appReleaseDate:'', //app推送市场日期 	类型:string 非必填,
  * appReleaseId:'', //app推送市场的记录id 	类型:integer 非必填,
  * auditStatus:'', //审核状态 	类型:string 非必填,
  * createBy:'', //审核人 	类型:string 非必填,
  * createDate:'', //审核时间 	类型:string 非必填,
  * id:'', // 	类型:integer 非必填,
  * rejectedReason:'', //驳回原因 	类型:string 非必填
  * }], // 	类型:array 非必填
 * localeCode:'', // 	类型:string 非必填
 * message:'', // 	类型:string 非必填
 * messageData:'', // 	类型:array 非必填
 * **********************
 * import { getHmappreleaseauditAuditrecords } from '@/apis/dev-centre/HmAppReleaseAuditController.js'
 */
export function getHmappreleaseauditAuditrecords(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: BASE_URL+`/api/hm-app-release-audit/audit-records`,
    ...config,
  }) 
}

/**
 * 审核驳回
 * @doc http://ms-dev.hancode.com/dev-centre/v2/api-docs
 * data 参数 
 * id:'', // 	类型:integer 非必填
 * rejectedReason:'', // 	类型:string 非必填
 * @returns
 * code:'', //执行结果状态码 	类型:integer 必填
 * data:'', //返回正确结果时携带的数据 	类型:string 非必填
 * message:'', //执行结果信息 	类型:string 必填
 * messageData:'', //错误信息填充字段 	类型:array 非必填
 * **********************
 * import { putHmappreleaseauditReject } from '@/apis/dev-centre/HmAppReleaseAuditController.js'
 */
export function putHmappreleaseauditReject(data={}, config={}){
  return request({
    method: 'put',
    data,
    url: BASE_URL+`/api/hm-app-release-audit/reject`,
    ...config,
  }) 
}

/**
 * 查看驳回原因
 * @doc http://ms-dev.hancode.com/dev-centre/v2/api-docs
 * params 参数 
 * id:'', //驳回记录id 非必填
 * @returns
 * code:'', //执行结果状态码 	类型:integer 必填
 * data:'', //返回正确结果时携带的数据 	类型:string 非必填
 * message:'', //执行结果信息 	类型:string 必填
 * messageData:'', //错误信息填充字段 	类型:array 非必填
 * **********************
 * import { getHmappreleaseauditRejectreason } from '@/apis/dev-centre/HmAppReleaseAuditController.js'
 */
export function getHmappreleaseauditRejectreason(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: BASE_URL+`/api/hm-app-release-audit/reject-reason`,
    ...config,
  }) 
}